<%@ page language="java" contentType="text/javascript; charset=UTF-8"
	pageEncoding="GBK"%>
<%@ page import="java.util.*, com.oval.util.*"%>
<%
	String languageCode = (String) session.getAttribute("languagecode");
	if (languageCode == null || "".equals(languageCode)) {
		languageCode = "cn";
	}
	String dateFormat = (String) session.getAttribute("dateformat");
	if (dateFormat == null || "".equals(dateFormat)) {
		dateFormat = "yyyy-MM-dd";
	}
	String contextPath = request.getContextPath();
	
	OvalLabel label = new OvalLabel(languageCode, "UPM");
	OvalCustomMessage message = new OvalCustomMessage(languageCode);
%>
var languagecode = '<%= languageCode %>';
var dateformat = '<%= dateFormat %>';
var contextPath = '<%= contextPath %>';

var message = {
	U_DEFAULT: '<%= message.getMessageDesc("U_DEFAULT") %>',
	VALUE_NOT_NULL: '<%= message.getMessageDesc("VALUE_NOT_NULL") %>',
	VALUE_MUST_BE_DATE: '<%= message.getMessageDesc("VALUE_MUST_BE_DATE") %>',
	VALUE_MUST_BE_INT: '<%= message.getMessageDesc("VALUE_MUST_BE_INT") %>',
	VALUE_MUST_BE_NUMBER: '<%= message.getMessageDesc("VALUE_MUST_BE_NUMBER") %>',
	VALUE_MUST_BE_POSITIVE: '<%= message.getMessageDesc("VALUE_MUST_BE_POSITIVE") %>',
	VALUE_MUST_NOT_NEGATIVE: '<%= message.getMessageDesc("VALUE_MUST_NOT_NEGATIVE") %>',
	VALUE_MUST_NOT_EQUAL_ZERO: '<%= message.getMessageDesc("VALUE_MUST_NOT_EQUAL_ZERO") %>',
	LENGTH_NOT_MORETHAN: '<%= message.getMessageDesc("LENGTH_NOT_MORETHAN") %>',
	VALUE_NOT_MORETHAN: '<%= message.getMessageDesc("VALUE_NOT_MORETHAN") %>'
};

var labelname = {
	L_Year: '<%= label.getLabelName("L_Year", false) %>',
	L_Month: '<%= label.getLabelName("L_Month", false) %>',
	L_Sun: '<%= label.getLabelName("L_Sun", false) %>',
	L_Mon: '<%= label.getLabelName("L_Mon", false) %>',
	L_Tue: '<%= label.getLabelName("L_Tue", false) %>',
	L_Wed: '<%= label.getLabelName("L_Wed", false) %>',
	L_Thu: '<%= label.getLabelName("L_Thu", false) %>',
	L_Fri: '<%= label.getLabelName("L_Fri", false) %>',
	L_Sat: '<%= label.getLabelName("L_Sat", false) %>',
	L_QuickSearch: '<%= label.getLabelName("L_QuickSearch", false) %>',
	L_Back: '<%= label.getLabelName("L_Back", false) %>',
	L_ErrorMsg: '<%= label.getLabelName("L_ErrorMsg", false) %>'
};
